<%- include header %>
	<ul class="archive">
		<% var lastYear = 0 %>
		<% posts.forEach(function (post, index) { %>
		  <% if (lastYear != post.createdAt) { %>
		    <li><h3><%= post.createdAt %></h3></li>
		  <% lastYear = post.createdAt } %>
		    <li><time><%= post.createdAt %></time></li>
		    <li><a href="/posts/<%= post._id %>"><%= post.title %></a></li>
		<% }) %>
	</ul>
<%- include footer %>